home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _0054DA4712BA478EB6C65EABBEF96CD0 < prev    next >
Encoding:
Text File  |  2004-01-06  |  4.2 KB  |  133 lines

  1. Script:LoadScript("scripts/materials/commoneffects.lua");
  2.  
  3. local WalkParticles = 
  4. {
  5.     {--dust
  6.         focus = 0,
  7.         speed = 0.25,
  8.         start_color = {0.89,0.69,0.4},
  9.         end_color = {1,1,1},
  10.         count = 5, --default 5
  11.         size = 0.3, 
  12.         size_speed=0.2,
  13.         rotation = {x = 0.0, y = 0.0, z = 4},
  14.         gravity = {x = 0.0, y = 0.0, z = 0},
  15.         lifetime=2,
  16.         blend_type = 0,
  17.         tid = System:LoadTexture("textures\\clouda2.dds"),
  18.         frames=0,
  19.     },
  20. }
  21.     
  22. Materials["mat_sand_dry"] = {
  23.     type="sand_dry",
  24. -------------------------------------
  25.     PhysicsSounds=PhysicsSoundsTable.Soft,
  26. -------------------------------------    
  27.     bullet_drop_single = CommonEffects.common_bullet_drop_single_ashphalt,
  28.     bullet_drop_rapid = CommonEffects.common_bullet_drop_rapid_ashphalt,
  29. -------------------------------------    
  30.     projectile_hit = CommonEffects.common_projectile_hit,
  31.     mortar_hit = CommonEffects.common_mortar_hit,
  32.     smokegrenade_hit = CommonEffects.common_smokegrenade_hit,
  33.     flashgrenade_hit = CommonEffects.common_flashgrenade_hit,
  34.     grenade_hit = CommonEffects.common_grenade_hit,
  35.  
  36.     bullet_hit = {
  37.         sounds = {
  38.             {"Sounds/Bullethits/bsand1.wav",SOUND_UNSCALABLE,200,5,60},
  39.             {"Sounds/Bullethits/bsand2.wav",SOUND_UNSCALABLE,200,5,60},
  40.             {"Sounds/Bullethits/bsand3.wav",SOUND_UNSCALABLE,200,5,60},
  41.             {"Sounds/Bullethits/bsand4.wav",SOUND_UNSCALABLE,200,5,60},
  42.             },
  43.         decal = { 
  44. --            object = System:LoadObject("Objects/Other/decal/ray.cgf"),
  45.             texture = System:LoadTexture("Textures/Decal/sand.dds"),
  46.             lifetime = 2,
  47.             scale = 0.08,
  48.                 },
  49.         
  50.         particleEffects = {
  51.             name = "bullet.hit_sand.a",
  52.             },
  53.         },
  54.     melee_slash = {
  55.         sounds = {
  56.             {"sounds/weapons/machete/machetesand4.wav",SOUND_UNSCALABLE,185,5,30},
  57.             --{"sounds/weapons/machete/machetesand2.wav",SOUND_UNSCALABLE,255,5,30},
  58.             --{"sounds/weapons/machete/machetesand3.wav",SOUND_UNSCALABLE,255,5,30},
  59.         },
  60.     },
  61.  
  62.  
  63. -------------------------------------
  64.     player_walk = {
  65.         sounds = {
  66.             {"sounds/player/footsteps/sand_dry/step1.wav",SOUND_UNSCALABLE,140,10,60},
  67.             {"sounds/player/footsteps/sand_dry/step2.wav",SOUND_UNSCALABLE,140,10,60},
  68.             {"sounds/player/footsteps/sand_dry/step3.wav",SOUND_UNSCALABLE,140,10,60},
  69.             {"sounds/player/footsteps/sand_dry/step4.wav",SOUND_UNSCALABLE,140,10,60},
  70.         },
  71.         particles = WalkParticles,
  72.     },
  73.     player_run = {
  74.         sounds = {
  75.             {"sounds/player/footsteps/sand_dry/step1.wav",SOUND_UNSCALABLE,200,10,60},
  76.             {"sounds/player/footsteps/sand_dry/step2.wav",SOUND_UNSCALABLE,200,10,60},
  77.             {"sounds/player/footsteps/sand_dry/step3.wav",SOUND_UNSCALABLE,200,10,60},
  78.             {"sounds/player/footsteps/sand_dry/step4.wav",SOUND_UNSCALABLE,200,10,60},
  79.         },
  80.         particles = WalkParticles,
  81.     },
  82.     player_crouch = {
  83.         sounds = {
  84.             {"sounds/player/footsteps/sand_dry/step1.wav",SOUND_UNSCALABLE,120,10,60},
  85.             {"sounds/player/footsteps/sand_dry/step2.wav",SOUND_UNSCALABLE,120,10,60},
  86.             {"sounds/player/footsteps/sand_dry/step3.wav",SOUND_UNSCALABLE,120,10,60},
  87.             {"sounds/player/footsteps/sand_dry/step4.wav",SOUND_UNSCALABLE,120,10,60},
  88.         },
  89.         particles = WalkParticles,
  90.     },
  91.     player_prone = {
  92.         sounds = {
  93.             {"sounds/player/footsteps/sand_dry/step1.wav",SOUND_UNSCALABLE,120,10,60},
  94.             {"sounds/player/footsteps/sand_dry/step2.wav",SOUND_UNSCALABLE,120,10,60},
  95.             {"sounds/player/footsteps/sand_dry/step3.wav",SOUND_UNSCALABLE,120,10,60},
  96.             {"sounds/player/footsteps/sand_dry/step4.wav",SOUND_UNSCALABLE,120,10,60},
  97.         },
  98.         particles = WalkParticles,
  99.     },
  100.     player_walk_inwater = CommonEffects.player_walk_inwater,
  101.     
  102.     player_drop = {
  103.         sounds = {
  104.             {"sounds/player/bodyfalls/bodyfalldirt1.wav",SOUND_UNSCALABLE,210,10,150},
  105.             {"sounds/player/bodyfalls/bodyfalldirt2.wav",SOUND_UNSCALABLE,210,10,150},
  106.             {"sounds/player/bodyfalls/bodyfalldirt3.wav",SOUND_UNSCALABLE,210,10,150},
  107.         },
  108. --        decal = { 
  109. --            texture = System:LoadTexture("Textures/Decal/Default.tga"),
  110. --            scale = 0.1,
  111. --        },
  112.     },
  113. -------------------------------------
  114.     player_land = {
  115.         sounds = {
  116.             --sound , volume , {min, max}
  117.             --NOTE volume and min max are optional
  118.              {"sounds/doors/dooropen.wav"},
  119.              {"sounds/doors/dooropen.wav"},
  120.             
  121.         },
  122.     },
  123.     gameplay_physic = {
  124.         piercing_resistence = 15,
  125.         friction = 1,
  126.         bouncyness= -2, -- default 0
  127.     },
  128.  
  129.     AI = {
  130.         fImpactRadius = 5,
  131.     },
  132.             
  133. }